import { Command } from '@/commands/command.ts'
import { new_command } from '@/models/command.ts'

export class QrCodeCommand extends Command {
    public static new(args: string): Command {
        const command = new_command()
        command.args = args
        command.name = 'qrcode'
        command.component = 'QrCodeCommandComponent'

        return new QrCodeCommand(command, false)
    }

    usage(): string {
        return 'qrcode 字符串'
    }

    description(): string {
        return '使用给定的文本内容生成二维码'
    }
}
